package com.learning.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.learning.enums.DiffType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 试卷表
 *
 * @author mhdtkc
 * @since 2024-5-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("exam_paper")
public class ExamPaper implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 难易度，1-简单，2-中等，3-困难
     */
    private DiffType difficulty;


    /**
     * 选择题数量
     */
    private Short selectQuestionNumber;


    /**
     * 填空题数量
     */
    private Short blackfillQuestionNumber;


    /**
     * 主观题数量
     */
    private Short subjectiveQuestionNumber;


    /**
     * 试卷总分
     */
    private Short totalScore;


    /**
     *  出题老师id
     */
    private Long teacherId;


    /**
     * 创建时间
     */
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
